<?php  
include('../../config/config.php');

if($_POST["button"] == "Tambah")  

{
	$training = $_POST['training'];
	$departemen = $_POST['departemen'];
	
	
	
		$sql = "INSERT INTO training_wajib ( NAMA_TRAINING_WAJIB, ID_DEPARTEMEN)
		VALUES ('$training','$departemen')";
		$result = mysql_query($sql) or die(mysql_error());;
		mysql_close();
		header('Location: /mpd/ad/view/tambahtraining.php');
}
?>